<@override name="title">签到设置</@override>

<@override name="viewbody">
<div class="row">
    <div class="col-md-12">
        <h3 class="page-title">
            趣味游戏
            <small>
                签到设置
            </small>
        </h3>
        <ul class="page-breadcrumb breadcrumb">
            <li>
                <i class="fa fa-home"></i>
                <a href="${ctx}/admin/home">
                    首页
                </a>
                <i class="fa fa-angle-right"></i>
            </li>
            <li>
                <a href="#">
                    签到设置
                </a>
            </li>
        </ul>
    </div>
</div>
<div id="tip">

</div>
<form class="form-horizontal" action="${ctx}/admin/game/sign/save" role="form" id="ajaxForm" method="post">
    <input type="hidden" name="signRule.id" id="signRule.id" value="${signRule.id!}">
    <div class="panel panel-default">
        <div class="panel-heading"><h6 class="panel-title">签到设置</h6></div>
        <div class="panel-body">
            <input name="signRule.id" type="hidden"/>

            <div class="form-group">
                <label class="col-sm-2 control-label" for="signRule.name">名称: <span class="mandatory">*</span></label>

                <div class="col-sm-4">
                    <input type="text" class="form-control" name="signRule.name" id="signRule.name" value="${signRule.name!}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="signRule.status">启用: <span class="mandatory">*</span></label>

                <div class="col-sm-4">
                    <div class="radio-list">
                        <label class="radio-inline">
                            <input type="radio" name="signRule.status" <#if signRule.status?? && signRule.status?string("true", "false") == "true">checked </#if> value="1"> 是
                        </label>
                        <label class="radio-inline">
                            <input type="radio" name="signRule.status" <#if signRule.status?? && signRule.status?string("true", "false") == "false">checked </#if> value="0"> 否
                        </label>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="signRule.description">描述: </label>

                <div class="col-sm-9">
                    <textarea class="form-control" rows="3" name="signRule.description" id="signRule.description">${signRule.description!}</textarea>
                </div>
            </div>
            <#--<div class="form-group">
                <label class="col-sm-2 control-label" for="signRule.get_integral">获取积分: <span class="mandatory">*</span></label>

                <div class="col-sm-9">
                    <div class="radio-list">
                        <label class="radio-inline">
                            <input type="radio" name="signRule.get_integral" <#if signRule.get_integral?? && signRule.get_integral?string("true", "false") == "true">checked </#if> value="1"> 是
                        </label>
                        <label class="radio-inline">
                            <input type="radio" name="signRule.get_integral" <#if signRule.get_integral?? && signRule.get_integral?string("true", "false") == "false">checked </#if> value="0"> 否
                        </label>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="signRule.base_integral">基础积分: <span class="mandatory">*</span></label>

                <div class="col-sm-9">
                    <input type="text" class="form-control" name="signRule.base_integral" id="signRule.base_integral" value="${signRule.base_integral!}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="signRule.incr_integral">增长积分: <span class="mandatory">*</span></label>

                <div class="col-sm-9">
                    <input type="text" class="form-control" name="signRule.incr_integral" id="signRule.incr_integral" value="${signRule.incr_integral!}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="signRule.max_integral">最大积分: <span class="mandatory">*</span></label>

                <div class="col-sm-9">
                    <input type="text" class="form-control" name="signRule.max_integral" id="signRule.max_integral" value="${signRule.max_integral!}">
                </div>
            </div>-->

            <div class="form-group">
                <label class="col-sm-2 control-label" for="signRule.get_currency">获取中南币: <span class="mandatory">*</span></label>

                <div class="col-sm-9">
                    <div class="radio-list">
                        <label class="radio-inline">
                            <input type="radio" name="signRule.get_currency" <#if signRule.get_currency?? && signRule.get_currency?string("true", "false") == "true">checked </#if> value="1"> 是
                        </label>
                        <label class="radio-inline">
                            <input type="radio" name="signRule.get_currency" <#if signRule.get_currency?? && signRule.get_currency?string("true", "false") == "false">checked </#if> value="0"> 否
                        </label>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="signRule.base_currency">普通签到赠送: <span class="mandatory">*</span></label>

                <div class="col-sm-9">
                    <input type="text" class="form-control" name="signRule.base_currency" id="signRule.base_currency" value="${signRule.base_currency!}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="signRule.incr_currency">连续签到赠送: <span class="mandatory">*</span></label>

                <div class="col-sm-9">
                    <input type="text" class="form-control" name="signRule.incr_currency" id="signRule.incr_currency" value="${signRule.incr_currency!}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="signRule.max_currency">最高赠送: <span class="mandatory">*</span></label>

                <div class="col-sm-9">
                    <input type="text" class="form-control" name="signRule.max_currency" id="signRule.max_currency" value="${signRule.max_currency!}">
                </div>
            </div>
        </div>

        <div class="form-actions text-right">
            <#--<a class="btn default yellow-stripe" href="${ctx}/admin/game/rule">返回</a>-->
            <input type="button" id="save" value="保存" class="btn btn-primary">
        </div>
    </div>
    </div>
</form>
<script id="message-template" type="text/x-handlers-template">
    <div class="alert {{class}} fade in widget-inner" id="alert">
        <button type="button" class="close" data-dismiss="alert">×</button>
        {{message}}
    </div>
</script>
</@override>

<@override name="viewmodule">sign</@override>

<@extends name="../../_basic/main.ftl"></@extends>
